package com.sunshine.lnuplus.service

import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import com.sunshine.lnuplus.callback.LoadDataCallBack
import com.sunshine.lnuplus.callback.LoadTitleCallBack
import com.sunshine.lnuplus.internet.LoadTitle
import com.sunshine.lnuplus.internet.LoadWeather

class LoadWeatherService : Service() {

    override fun onBind(intent: Intent): IBinder {
        return MyBind()
    }

    inner class MyBind : Binder(){
        fun getService(): LoadWeatherService {
            return this@LoadWeatherService
        }
    }

    fun setCallBack(callBack: LoadDataCallBack){
        LoadWeather(this, callBack)
    }

}
